ATEXIT

Section: MINTLIB LIBRARY FUNCTIONS (3)
Updated: 3 March 1993
Index Return to Main Contents
 

NAME

atexit - register exit cleanup function  

SYNOPSIS

#include <stdlib.h>

int atexit(void (*)(void));
 

DESCRIPTION

atexit registers exit cleanup functions to be called when the process is terminated using exit. The functions supplied should not need any parameters and should not return any values. Processes terminated by calling _exit will circumvent any registered cleanup functions.  

RETURN VALUES


 0 on success. -1 on failure; errno is set to indicate the error.  

SEE ALSO

exit(3), _exit(3)  

NOTE

ANSI requires atexit to be able to register at least 32 functions. The mintlibs allocate memory dynamically through using malloc; it is hoped this is okay.
 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
NOTE

This document was created by man2html, using the manual pages.
Time: 11:14:59 GMT, June 22, 2025